/// ProcessOrderDto
class ProcessOrderDto {
  /// 订单id
  final int orderId;
  /// 订单号
  final String orderNum;
  /// 审核结果，1通过，0拒绝
  final int handleResult;
  /// 凭证访问地址，核销通过或拒绝时上传凭证
  final String? proofUrl;
  /// 备注
  final String? remark;

  ProcessOrderDto({
    required this.orderId,
    required this.orderNum,
    required this.handleResult,
    this.proofUrl,
    this.remark,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['orderId'] = orderId;
    data['orderNum'] = orderNum;
    data['handleResult'] = handleResult;
    if (proofUrl != null) data['proofUrl'] = proofUrl;
    if (remark != null) data['remark'] = remark;
    return data;
  }

  factory ProcessOrderDto.fromJson(Map<String, dynamic> json) {
    return ProcessOrderDto(
      orderId: json['orderId'],
      orderNum: json['orderNum'],
      handleResult: json['handleResult'],
      proofUrl: json['proofUrl'],
      remark: json['remark'],
    );
  }
}